package com.ruoyi.hk.mapper.message;

import com.ruoyi.hk.domain.DocConversation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface DocConversationMapper {
    List<DocConversation> selectConversationsByUserId(Map<String, Object> params);

    @Select("select * from doc_conversation where user1_id = #{user1Id} and user2_id = #{user2Id}")
    DocConversation selectByUserId(Map<String, Object> params);

    Integer insertConversation(DocConversation conversation);

    Integer updateConversation(DocConversation conversation);

    DocConversation selectConversationsByUserIdOne(Map<String, Object> params);
}
